#ifndef QTCARD_H
#define QTCARD_H

#include "Card.h"
#include <QLabel>
#include <QWidget>
#include <QPixmap>
#include "ui_qtcard.h"


class QtCard: public QWidget
{
	Q_OBJECT

public:
	QtCard(QWidget *parent = 0, Qt::WFlags flags = 0);
	~QtCard();

	void mousePressEvent(QMouseEvent *e);
	void Updated();

	void SetEmpty();
	bool IsEmpty() const;
	void SetCard(const Card& card);
	const Card& GetCard() const;

signals:
	void ClickedCard(QtCard* Card);
private:
	Card card;
	bool empty;

	Ui::QtCard ui;
};

#endif // QTCARD_H